from BASE.myBase import Tools
from API.login_api import login_module


class creatTask_module(Tools):
    path = '/task/info'

    def creatTask_action(self,task_title):
        data = {
            "title": task_title
        }
        head = login_module(self.session).get_head()
        res = self.session.post(url=self.hosturl+self.path,json=data,headers=head).json()
        return res
